﻿@model OnlineEducation.Models.ServerAPIModels.CreateMeeting
@{
    Layout = null;
}

<div class="modal-header">
    <h4 class="modal-title">新建教室</h4>
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<form onsubmit="return SubmitAddEdit(this)">
    <div asp-validation-summary="ModelOnly" class="text-danger"></div>

    <div class="modal-body p-4">
        <div class="row">
            <div class="col-md-12">
                <input type="hidden" name="meetingID" value="@Guid.NewGuid().ToString()" />
                <div class="form-group">
                    <label for="Name" class="control-label">
                        <span class="text-danger">*</span>教室名称
                        <i class="mdi mdi-help-circle mr-1 text-primary" title="教室名称" data-plugin="tippy" data-tippy-animation="perspective" data-tippy-arrow="true">
                        </i>
                    </label>
                    <input asp-for="name" class="form-control" />
                    <span asp-validation-for="name" class="text-danger"></span>

                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="form-group">
                    <label for="Value" class="control-label"><span class="text-danger">*</span>进入密码 <i class="mdi mdi-help-circle mr-1 text-primary" title="学生的进入密码" data-plugin="tippy" data-tippy-animation="perspective" data-tippy-arrow="true"></i></label>
                    <input asp-for="attendeePW" class="form-control" value="666666" />
                    <span asp-validation-for="attendeePW" class="text-danger"></span>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="form-group">
                    <label for="Value" class="control-label"><span class="text-danger">*</span>讲师密码 <i class="mdi mdi-help-circle mr-1 text-primary" title="讲师的进入密码" data-plugin="tippy" data-tippy-animation="perspective" data-tippy-arrow="true"></i></label>
                    <input asp-for="moderatorPW" class="form-control" value="666666" />
                    <span asp-validation-for="moderatorPW" class="text-danger"></span>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="form-group">
                    <label for="Value" class="control-label"><span class="text-danger">*</span>欢迎词 <i class="mdi mdi-help-circle mr-1 text-primary" title="显示教室的上的标题" data-plugin="tippy" data-tippy-animation="perspective" data-tippy-arrow="true"></i></label>
                    <textarea asp-for="welcome" rows="5" class="form-control"></textarea>

                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-secondary waves-effect" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary waves-effect waves-light">保存</button>
    </div>
</form>
<script>
    Ladda.bind('.btn-primary', { timeout: 1000 });
    $(function () {
        tippy('.mdi-help-circle');
    });

</script>
